//
//  ChosePositionCell.m
//  u76ho
//
//  Created by m-air-01 on 16/1/10.
//  Copyright © 2016年 LV. All rights reserved.
//

#import "ChosePositionCell.h"

@implementation ChosePositionCell

- (void)awakeFromNib {
    // Initialization code
}
-(void)setFirsModel:(ComplexPositionDetailModel *)firsModel
{
    _firsModel = firsModel;
    NSString * str = nil;
    if ([firsModel.typenames rangeOfString:@"/"].length) {
        NSArray * arr = [firsModel.typenames componentsSeparatedByString:@"/"];
        str = [arr componentsJoinedByString:@" | "];
    }
    else
    {
        str = firsModel.typenames;
    }
    _firstLab.text = str;
}
-(void)setArr:(NSArray *)arr
{
    _arr = arr;
    NSMutableString * str = [[NSMutableString alloc]init];
    for (int i = 0; i<arr.count; i++) {
        ComplexPositionDetailModel * model = arr[i];
        [str appendString:[NSString stringWithFormat:@"%@ ",model.typenames]];
    }
    _secondLab.text = str;
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
